﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
using Abp.Application.Services.Dto;
using Abp.AutoMapper;
using Abp.Domain.Entities.Auditing;
using FwProject.ShoppingMall.Product;

namespace FwProject.Product.Dto
{
    /// <summary>
    /// 商品类型
    /// </summary>
    [AutoMap(typeof(ProductType))]
    public class ProductTypeDto: EntityDto<Guid>, ICreationAudited
    {
        /// <summary>
        /// 类型名称
        /// </summary>
        [Display(Name = "类型名称")]
        public string TypeName { get; set; }
        /// <summary>
        /// 是否存在属性
        /// </summary>
        [Display(Name = "是否存在属性")]
        public bool Isflagattr { get; set; } = true;
        /// <summary>
        /// 是否存在参数
        /// </summary>
        [Display(Name = "是否存在参数")]
        public bool Ispro { get; set; } = true;
        /// <summary>
        /// 是否和品牌关联
        /// </summary>
        [Display(Name = "是否和品牌关联")]
        public bool Isbrand { get; set; } = true;
        /// <summary>
        /// 是否存在规格选项
        /// </summary>
        [Display(Name = "是否存在规格选项")]
        public bool IsSpec { get; set; } = false;
        /// <summary>
        /// 排序
        /// </summary>
        [Display(Name = "排序")]
        public int Orders { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public long? CreatorUserId { get ; set ; }
        /// <summary>
        /// 
        /// </summary>
        public DateTime CreationTime { get ; set ; }
    }
}
